#include "GlobalHead.h"
#include "AppPart.h"
#include "PartFeature.h"
#include "PrimitiveFeature.h"
#include "sceneObject.h"
#include "Part2DObject.h"
#include "PartPathCamera.h"
#include "FreeCamera.h"
AppPart* AppPart::_sington = 0;
AppPart::AppPart(void)
{
}

AppPart::~AppPart(void)
{
}

AppPart* AppPart::Instance()
{
	if(_sington == 0)
      _sington = new AppPart;

	return _sington;
}

void AppPart::destruct()
{
	delete _sington;
	_sington = NULL;
}

void AppPart::initPart()
{
	Part::PropertyPartShape       ::init();
	Part::Feature                ::init();
	Part::Primitive              ::init();
	Part::sceneObject            ::init();
	Part::Part2DObject           ::init();
	Part::PartPathCamera          ::init();
	Part::PartFreeCamera          ::init();
}


